//
//  QJBaseViewController.h
//  QJProject
//
//  Created by 高中雷 on 15/5/19.
//  Copyright (c) 2015年 高中雷. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "QJTableView.h"
#import "QJUIMapping.h"
typedef enum {
    QJClientLaodStatusNone,
    QJClientLaodStatusLoading,
    QJClientLaodStatusNull,
    QJClientLaodStatusFail,
    QJClientLaodStatusLoaded
}QJClientLaodStatus;

typedef void (^passValueBlock)(id data,id count);//取消关注 更新导航标题
typedef void (^entValueBlock)(BOOL data);//一键已读颜色


@interface QJBaseViewController : UIViewController<QJCellControlClientDelegate,QJTableControlDelegate,QJTableControlDelegate,QJCellDelegate>{
    BOOL m_QjStaus;//不需要loding
    QJTableView *m_tableView;
  
 
    
}


/**
 * tableView 可以连接xib 或者手写代码
 */
@property (nonatomic , strong ) IBOutlet UITableView *tableView;

@property (nonatomic, strong ) NSString *showText;//转圈显示

@property (nonatomic) BOOL b_hide;//是否自已隐藏

@property (nonatomic) QJClientLaodStatus loadStatus;



@property (nonatomic) BOOL b_navHeaderView;//判断是否有导航栏默认是yes(yes:64 no:0)

@property (nonatomic, weak) UIViewController *parentController;

@property (nonatomic) UINavigationController *myNav;



@property (nonatomic,copy) passValueBlock passValueBlock;

@property (nonatomic, copy) entValueBlock bValueBlock;


-(UIViewController*)getRootController;

// push带入的参数
@property (strong, nonatomic) id objInput;


//pop带入的参数
@property (nonatomic, strong) id objOutput;

//分页计数
@property (nonatomic,strong) NSString *page;

//

@property (nonatomic) NSMutableArray *cellArray;

/**
 * 子类调用
 */
-(void)initDataWithControl:(QJTableView*)control;

-(void)reloadDatas;
@end
